﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PortalParts/Portal.Master" AutoEventWireup="true" CodeBehind="PhotoWallPage.aspx.cs" Inherits="ZHDJ.Web.Portal.PhotoWall.PhotoWallPage" %>

<%@ Import Namespace="ZHDJ.WebPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../../Resource/themes/default/css/party.picture.wall.css" rel="stylesheet" />
    <script src="../../Resource/js/jquery/jquery.ad-gallery.js" type="text/javascript"></script>
    <script>
        $(function () {
            var galleries = $('.ad-gallery').adGallery({
                loader_image: '../../Resource/themes/default/images/Widget/widget-loading.gif'
            });

            if ($(".secretary-chat-online-table").length < 2) {
                $(".secretary-chat-online-table").css({ display: "block" })
            }

            $("#ctl00_ContentPlaceHolder1_btnReset").click(function () {
                if (confirm("你确定要重置吗？")) {
                    $("#ctl00_ContentPlaceHolder1_txtContent").val("");
                    //$("#txtImageDesc").val("");
                }
                return false;
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
    <div>
        <div class="party-navigation">
            当前位置：<a href="/Default.aspx">首页</a> > <a href="PhotoWallList.aspx?PageIndex=0">留影墙</a>
        </div>
		<div class="bgline"></div>
        <div class="ad-gallery">
            <div style="width: 100%; text-align: center;margin-top: 20px;border-bottom: solid 1px #ddd;padding-bottom: 20px;">
                <asp:Label ID="lblTitle" runat="server" Font-Size="X-Large" Font-Bold="true"></asp:Label>
            </div>
            <div class="ad-image-wrapper"></div>
            <div class="ad-nav">
                <div class="widget-pic-page-list">
                    <div class="ad-thumbs">
                        <ul class="ad-thumb-list">
                            <%foreach (System.Data.DataRow dr in DataSource.Rows)
                                {
                            %>
                            <li>
								<a href="<%= UpFileBusiness.FormatFileUrl( Convert.ToString(dr["Url"])) %>">
									<img src="<%=UpFileBusiness.FormatFileUrl( Convert.ToString(dr["Url"])) %>" alt="<%=string.Format(PhotoInfo, dr["Describe"].ToString())%>" title="<%=dr["Title"] %>" width="133" height="100" />
								</a>
                            </li>
                            <%
								}
							%>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <!--评论-->
        <div style="margin-top: 10px;">
            <div class="party-portal-content-title">
                主题：<asp:Label ID="lbTitle" runat="server"></asp:Label>
            </div>
        </div>
        <div style="background: #fff;margin-top: 10px;">
            <table border="0" cellpadding="0" cellspacing="0" class="secretary-chat-online-table" style="display: none; width: 100%;">
                <tr>
                    <td style="padding-top: 10px; padding-left: 10px;">暂无评论！</td>
                </tr>
            </table>
            <asp:Repeater ID="rptChat" runat="server">
                <ItemTemplate>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="secretary-chat-online-table">
                        <tr>
                            <th style="text-align: left;">[<%#Eval("UserName")%>]<span class="secretary-chat-online-table-time" style="margin: 10px">来源：<%#string.IsNullOrEmpty(Eval("DataCreateType").ToString()) ? "网站" : Eval("DataCreateType")%></span></th>
                            <td class="secretary-chat-online-table-time" style="text-align: right;">
                                <%#Convert.ToDateTime(Eval("CreateTime")).ToString("yyyy-MM-dd HH:mm:ss") %>
                                        发表
                            </td>
                        </tr>
                        <tr class="more-list-tr1">
                            <td colspan="2" style="text-indent: 30px;">
                                <p>
                                    <%#Eval("Content") %>
                                </p>
                                <p>

                                    <img src='<%#ZHDJ.WebPage.UpFileBusiness.GetFileUrl(Eval("ImageID").ToString()) %>'
                                        width="250" style='<%#string.IsNullOrEmpty(Eval("ImageID").ToString())?"display:none;": "display:inline;"%>' />
                                </p>
                                <p>
                                    <label style='<%#string.IsNullOrEmpty(Eval("ImageID").ToString())?"display:none;": "display:inline;"%>'>图片描述：<%# Eval("ImageDesc")%></label></p>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <div style="margin-top: 20px;">
			<div class="mywrap">
				<div class="mywrapleft" style="font-weight:700;">评论交流</div>
			</div>
            <table border="0" cellpadding="10" cellspacing="0" class="party-portal-content-table" style="width:100%;margin-top: 20px;">
                <tr>
                    <th style="width: 10%">内容：</th>
                    <td style="width: 60%;" colspan="1">
                        <asp:TextBox ID="txtContent" runat="server" Width="100%" TextMode="MultiLine" Height="100px" Style="resize: none;"></asp:TextBox>
                    </td>
                </tr>
                <tr style="height: 30px;">
                    <th style="width: 10%">图片上传：</th>
                    <td style="width: 40%;">
                        <f:FileUpload runat="server" EmptyText="请选择一张图片" ID="filePhoto" OnFileSelected="filePhoto_FileSelected"
                            ButtonText="图片" ButtonIcon="ImageAdd" AutoPostBack="true" AcceptFileTypes="image/*" Width="300px">
                        </f:FileUpload>
                        <f:HiddenField ID="hdImageId" runat="server"></f:HiddenField>
                    </td>
                </tr>
				<tr style="height: 30px;">
                    <th style="width: 10%;">图片描述：</th>
                    <td style="width: 60%;">
                        <asp:TextBox runat="server" ID="txtImageDesc" Style="width: 100%;height: 30px;line-height: 30px;"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center;">
                        <asp:Button ID="btnSubmit" runat="server" Text="提交" Style="padding: 10px 25px;background: #ea0900;cursor: pointer;color: #fff;border: none;" OnClick="btnSubmit_Click" CssClass="button-style" />
                        <asp:Button ID="btnReset" runat="server" Text="重置" Style="margin-left: 20px; padding: 10px 25px;background: #ea0900;cursor: pointer;color: #fff;border: none;" CssClass="button-style" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
